package com.demo.wormhole.autoconfiguration.hystrix;

import com.demo.wormhole.component.hystrix.configuration.HystrixThreadLocalConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnClass(com.netflix.hystrix.Hystrix.class)
public class WormholeHystrixAutoConfiguration {
    
    @ConditionalOnClass
    @Bean
    public HystrixThreadLocalConfiguration HystrixThreadLocalConfiguration() {
        return new HystrixThreadLocalConfiguration();
    }
}
